package org.example.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.example.utils.XmlData;

import java.io.Serializable;

/**
 * @author haocjia
 */
@XStreamAlias("stream")
public class Person implements Serializable {

    private static final long serialVersionUID = -3604527493513432736L;

    @XStreamAlias("race")
    private String race;

    @XStreamAlias("color")
    private String color;

    @XStreamAlias("country  ")
    private String country;

    @XStreamAlias("list")
    private XmlData<User> list;

    public String getRace() {
        return race;
    }

    public void setRace(String race) {
        this.race = race;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public XmlData<User> getList() {
        return list;
    }

    public void setList(XmlData<User> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "Person{" +
                "race='" + race + '\'' +
                ", color='" + color + '\'' +
                ", country='" + country + '\'' +
                ", list=" + list +
                '}';
    }
}
